package ysm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ysm.entity.Tripartite;
import ysm.mapper.TripartiteMapper;

@Service
public class TripartiteService {
	
	@Autowired
	private TripartiteMapper tripartiteMapper;
	
	public void deleteByPrimaryKey(Integer id) {
		tripartiteMapper.deleteByPrimaryKey(id);
	}

	public void insert(Tripartite record) {
		tripartiteMapper.insert(record);
	}

	public void insertSelective(Tripartite record) {
		tripartiteMapper.insertSelective(record);
	}

    public Tripartite selectByPrimaryKey(Integer id) {
    	return tripartiteMapper.selectByPrimaryKey(id);
    }

    public void updateByPrimaryKeySelective(Tripartite record) {
    	tripartiteMapper.updateByPrimaryKeySelective(record);
    }

    public void updateByPrimaryKey(Tripartite record) {
    	tripartiteMapper.updateByPrimaryKey(record);
    }
    
    public Tripartite selectByUid(Integer uid) {
    	return tripartiteMapper.selectByUid(uid);
    }
    
    public List loadAllTripartite() {
    	return tripartiteMapper.loadAllTripartite();
    }
}
